#ifndef COMMUNICATIONSETVIEW_H
#define COMMUNICATIONSETVIEW_H

#include <QWidget>
#include <QSettings>
#include "CustomWgt/IpAddressWgt.h"

#include "SettingHelper.h"

namespace Ui {
class CommunicationSet;
}


class CommunicationSetView : public QWidget
{
    Q_OBJECT
public:
    explicit CommunicationSetView(QWidget *parent = 0);
    ~CommunicationSetView();
    void closeEvent(QCloseEvent *e);

    
private slots:
    void slot_ackChecked(bool flag);

private:
     void InitUi();
     void readSetting();
     void writeSetting();

private:
     Ui::CommunicationSet *ui;

     IpAddressWgt *ipaddrWgt;
     IpAddressWgt *maskWgt;
     IpAddressWgt *gatewayWgt;
     IpAddressWgt *lisipaddrWgt;

     SettingHelper *m_settingHelper;
    
};

#endif // COMMUNICATIONSETVIEW_H
